package com.easyexcel.dao;

        import com.alibaba.excel.annotation.ExcelIgnore;
        import com.alibaba.excel.annotation.ExcelProperty;
        import com.baomidou.mybatisplus.annotation.IdType;
        import com.baomidou.mybatisplus.annotation.TableId;
        import com.baomidou.mybatisplus.annotation.TableName;
        import lombok.AllArgsConstructor;
        import lombok.Data;
        import lombok.NoArgsConstructor;

/**
 * @Copyright (C), 2018-2020
 * @FileName: Achievement
 * @Author: 杜景涛
 * @Date: 2020/12/24 14:23
 * @Description: 成绩实体类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("achievement")
public class Achievement {
    /**
     * id'
     */

    /**
     * 忽略这个字段
     */
    @ExcelIgnore
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 用户id
     */
    @ExcelProperty("用户id")
    @TableId(value = "uid")
    private Integer uid;
    /**
     * 语文
     */
    @ExcelProperty("语文")
    private Double chinese;
    /**
     * 数学
     */
    @ExcelProperty("数学")
    private Double mathematics;
    /**
     * 英语
     */
    @ExcelProperty("英语")
    private Double english;
    /**
     * 总和
     */
    @ExcelProperty("总和")
    private Double sum;

}
